import { ZhuZICtr } from "../ZhuZICtr";

export default class PreData{
    public from:ZhuZICtr;
    public to:ZhuZICtr;
    public num:number;
    constructor(form:ZhuZICtr,to:ZhuZICtr,num:number){
        this.setData(form,to,num);
    }
    
    public setData(form:ZhuZICtr,to:ZhuZICtr,num:number){
        this.from=form;
        this.to=to;
        this.num=num;
    }

    public isAct(){
        if(this.num>0)return true;
        return false;
    }

    public rest(){
        this.from=null;
        this.to=null;
        this.num=0;
    }
}